﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="NewsManagementIframe.aspx.cs"
    Inherits="page_NewsManagementIframe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>

    <style type="text/css">
        <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        -->
    </style>

</head>
<body>
    <form id="form1" runat="server">
        <div class="sub_right_top">
  <div class="hdm_header" >
    <div class="tb1_on"><h2 class="h2_icon">新闻设置</h2></div>

    <div class="clear"></div>
  </div>
  <div class="hdm_footer">
  <div class="share_content_pad">
      <div class="disk_top_neir">
        <div class="disk_newfiles">请输入新闻标题：</div>
        <div class="disk_list">
          <asp:TextBox ID="TBSelect" runat="server" Width="359px"></asp:TextBox>

        </div>
        <div class="disk_anniu_style">
            <asp:Button ID="ButSelect" runat="server" OnClick="ButSelect_Click" Text="" CssClass="press_set_button"/>
        </div>
        <div class="clear"></div>
      </div>
      <br />
            <asp:GridView ID="GVNewsManager" runat="server" AutoGenerateColumns="False"  BorderColor="#77ACD0" HorizontalAlign="Center"
                        GridLines="Horizontal" AllowPaging="True" OnRowCommand="GVNewsManager_RowCommand"
                        PageSize="10" OnPageIndexChanging="GVNewsManager_PageIndexChanging"
                       BorderWidth="1px" Width="99%">
                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="ShowDetail.aspx?id={0}"
                                DataTextField="title" HeaderText="标题">
                                <HeaderStyle CssClass="itemhead" />
                            </asp:HyperLinkField>
                            <asp:BoundField DataField="newsDate" HeaderText="发布时间">
                                <HeaderStyle CssClass="itemhead" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="状态">
                                <HeaderStyle CssClass="itemhead" />
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='<%# "./images1/"+ Eval("state")+".gif" %>'
                                        CommandArgument='<%# Eval("id") %>' CommandName="change" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="AlterDetail.aspx?id={0}"
                                HeaderText="修改" Text="修改">
                                <HeaderStyle CssClass="itemhead" />
                            </asp:HyperLinkField>
                            <asp:TemplateField HeaderText="删除">
                                <HeaderStyle CssClass="itemhead" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("id") %>'
                                        CommandName="deleteById" Text=" 删除 "></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle BackColor="Transparent" ForeColor="Black" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                    <PagerStyle BackColor="#E4F1FD" ForeColor="#1E5494" HorizontalAlign="Right" />
                                    <HeaderStyle BackColor="#E4F1FD" ForeColor="#1E5494" BorderColor="#77ACD0" HorizontalAlign="Center"/>
                                    <AlternatingRowStyle BackColor="#E4F1FD" />
                    </asp:GridView>
       </div>
       </div>
       </div>
    </form>
</body>
</html>
